nEPT: fix EPT pointer setting for L2 guest
authorDongxiao Xu <dongxiao.xu@intel.com>
Mon, 4 Feb 2013 11:07:34 +0000 (12:07 +0100)
committerDongxiao Xu <dongxiao.xu@intel.com>
Mon, 4 Feb 2013 11:07:34 +0000 (12:07 +0100)
commited11108c8f34ae52daa36c367beeedb7a1740a57
tree491775e8aeee138355b9b0e6da28babba995ecec
parent29aede13d56f877b227e7afcd049e804b8a5a3ca
nEPT: fix EPT pointer setting for L2 guest

Each time in virtual_vmentry(), the code needs to cover both EPT
and shadow mode for L2 guest, updating different EPT pointer to
shadow VMCS.

This fixes the issue that, launch a guest with EPT, then kill it
and launch a second guest with shadow, the second guest will hang
at the startup screen.

Signed-off-by: Dongxiao Xu <dongxiao.xu@intel.com>
Acked by: Eddie Dong <eddie.dong@intel.com>
Committed-by: Jan Beulich <jbeulich@suse.com>
xen/arch/x86/hvm/vmx/vvmx.c